package com.share.test.example.selenium;

import com.share.config.email.EmailUtil;
import com.share.example.selenium.AppSelenium;
import com.share.example.selenium.service.amazon.buy.AmazonBuyLoginService;
import com.share.example.selenium.service.amazon.seller.AmazonSellerLoginService;
import com.share.example.selenium.service.amazon.seller.AmazonSellerPromotionService;
import com.share.example.selenium.service.hzhc.dingding.HcxxDingDingService;
import com.share.example.selenium.service.hzhc.hm.HcxxHmLoginService;
import com.share.example.selenium.service.hzhc.task_v2.HcxxTask_v2LoginService;
import lombok.extern.slf4j.Slf4j;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 类上面的两个注解不能缺少
 *
 * @RunWith(SpringRunner.class)
 * @SpringBootTest(classes = 启动类（引导类）.class)
 * 当此测试类所在的包与启动类所在的包：在同一级包下或是启动类所在包的子包
 * 测试方法的注解不能缺少
 * @Test 直接注入UserService对象就能够实现测试接口的调用，记得加@Autowired。
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppSelenium.class)
public class _TestBase {
    @Autowired
    public AmazonBuyLoginService amazonBuyLogin;

    @Autowired
    public AmazonSellerLoginService amazonSellerLogin;
    @Autowired
    public AmazonSellerPromotionService sellerPromotionService;

    @Autowired
    public HcxxDingDingService hcxxdd;

    @Autowired
    public HcxxHmLoginService hmLogin;

    @Autowired
    public HcxxTask_v2LoginService taskv2Login;

    @Autowired
    public EmailUtil emailUtil;
}
